package com.neu.icloud.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.neu.icloud.entity.Factory;

@Mapper
public interface FactoryMapper {

	//查看工厂
	public List<Factory> getAllFactory(Factory factory);

	//新建工厂
	@Insert("insert into factory(factoryName) values(#{factoryName})")
	public int saveFactory(Factory factory);
}
